package com.ysstech.reportworld.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 报表世界需求bug信息表
 * </p>
 *
 * @author lishuangliang
 * @since 2022-12-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("report_world_demand_bug_info")
public class DemandBugInfo extends Model<DemandBugInfo> {

    private static final long serialVersionUID = 1L;

    @TableId("ID")
    private String id;

    /**
     * 需求或者bug编号
     */
    @TableField("DEMAND_BUG_NUM")
    private String demandBugNum;

    /**
     * 需求或者bug类型 1需求2bug
     */
    @TableField("DEMAND_BUG_TYPE")
    private Integer demandBugType;
    /**
     * 需求或者bug来源 1外部 2内部
     */
    @TableField("DEMAND_BUG_FSOURCE")
    private Integer demandBugFsource;
    /**
     * 需求bug说明
     */
    @TableField("DESCRIPTION")
    private String description;

    /**
     * 版本号
     */
    @TableField("VERSION")
    private String version;

    /**
     * 需求bug时间
     */
    @JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    @DateTimeFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    @TableField("DEMAND_BUG_DATE")
    private LocalDate demandBugDate;

    @TableField("STATUS")
    private Integer status;

    @TableField("ADD_TIME")
    private LocalDateTime addTime;

    @TableField("ADD_USER")
    private String addUser;

    @TableField("EDIT_TIME")
    private LocalDateTime editTime;

    @TableField("EDIT_USER")
    private String editUser;

    @TableField("DELETE_REASON")
    private String deleteReason;

    @TableField(exist = false)
    private String strStatus;

    //需求BUG关联表的ID
    @TableField(exist = false)
    private String dataDemandBugId;


    //开始日期
    @TableField(exist = false)
    private String startDate;
    //结束日期
    @TableField(exist = false)
    private String endDate;

    @Override
    protected Serializable pkVal() {
        return null;
    }

}
